/**
 * @projectName study-note
 * @package Cammand
 * @className Cammand.ConcreteCommand
 */
package Cammand;

/**
 * ConcreteCommand
 * @description 继承Cammand类
 * @author answer_wx
 * @date 2022/7/5 12:04
 * @version 1.0
 */
public class ConcreteCommand extends Cammand {
    public ConcreteCommand(Receiver receiver) {
        super(receiver);
    }

    @Override
    public void execute() {
        receiver.action();
    }

    @Override
    public String submit() {
        return receiver.action("Cammand 返回信息");
    }
}